package com.example.springlearning.to;

import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author luo
 * @description
 * @since 2022/8/8 17:13
 */
public class SplitBatchOrderStockTo implements SubtractStockSummary {
    private final List<OrderItemTo> failOrderItemList;
    private final List<OrderItemTo> successOrderItemList;

    public SplitBatchOrderStockTo(List<OrderItemTo> failOrderItemList, List<OrderItemTo> successOrderItemList) {
        this.failOrderItemList = failOrderItemList;
        this.successOrderItemList = successOrderItemList;
    }


    @Override
    public boolean getSubtractStockResult() throws InterruptedException {
        return false;
    }


    @Override
    public int getCurrentAllSkuCount() {
        return 0;
    }


    @Override
    public int getSubtractStockSuccessCount() {
        return successOrderItemList.size();
    }

    @Override
    public int getSubtractStockFailCount() {
        return failOrderItemList.size();
    }
}
